package com.atguigu.chapter03

object TestArithmetic {

  def main(args: Array[String]): Unit = {
    var r1: Int = 10/3

    println("r1 = " +r1)

    var r2: Double = 10/3
    println("r2=" + r2)

    var r3: Double = 10.0/3
    println("r3=" +r3)
    println("r3=" + r3.formatted("%.2f"))

    var r4 = 10%3
    println("r4=" +r4)

    var s1 = "abc"
    var s2 = new String("abc")

    println(s1 == s2)
    println(s1.eq(s2))

  }

}
